package ooday04;

public abstract class Animal {
    String name;
    String color;
    int age;
    Animal(String name,String color,int age){
        this.name=name;
        this.age=age;
        this.color=color;
    }
     abstract void eat();
    void drink(){
        System.out.println("它叫"+name+"今年"+age+"岁了，一身"+color+"正在喝水");
    }
}
